import request from '/@/utils/request';

export function useContactApi() {
    return {
        queryContactList: (data: object) => {
            return request({
                url: '/api/contact/queryList',
                method: 'post',
                data,
            });
        },

        contactDetail: (data: object) => {
            return request({
                url: '/api/contact/detail',
                method: 'post',
                data,
            });
        },

        editContact: (data: object) => {
            return request({
                url: '/api/contact/edit',
                method: 'post',
                data,
            });
        },

        deleteContact: (data: object) => {
            return request({
                url: '/api/contact/delete',
                method: 'post',
                data,
            });
        },
    };
}